@charset "UTF-8";
/* 全局样式重置 */
* {
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

/* 页面最外层容器，居中显示 */
.box {
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  display: flex;
  background-color: #F6F6F6;
}

.box header {
  height: 100px;
  background-color: pink;
}

.box main {
  flex: 1;
  height: 80%;
}

.box main .center {
  width: 100%;
  height: 1000px;
  border-radius: 8px;
  margin-bottom: 500px;
  /* 发送框的样式 */
}

.box main .center .loaction {
  height: calc(100% - 100px);
  padding: 10px;
  box-sizing: border-box;
  overflow: auto;
  /* 每条消息项 */
  /* 消息居左显示（其他用户的消息） */
  /* 消息居右显示（当前用户的消息） */
  /* 用户头像样式 */
  /* 消息内容样式 */
}

.box main .center .loaction .message-item {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 15px;
}

.box main .center .loaction .flex-left {
  display: flex;
  justify-content: flex-start;
}

.box main .center .loaction .flex-right {
  display: flex;
  justify-content: flex-end;
}

.box main .center .loaction .avatar {
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #E5E6E8;
  text-align: center;
  min-width: 100px;
}

.box main .center .loaction .message-content {
  min-height: 50px;
  background-color: #23363C;
  color: #fff;
  border-radius: 20px;
  padding: 10px;
  line-height: 80px;
  margin: 10px;
}

.box main .center .send-box {
  height: 100px;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  /* 消息输入框样式 */
  /* 发送按钮样式 */
}

.box main .center .send-box .message-input {
  height: 70px;
  width: 80%;
  line-height: 70px;
  background-color: #F2F2FA;
  border-radius: 50px;
  margin-top: 15px;
  padding: 20px;
  border: none;
}

.box main .center .send-box .send-btn {
  width: 150px;
  height: 70px;
  line-height: 60px;
  text-align: center;
  border: none;
  background-color: #B4CDF7;
  border-radius: 50px;
  margin-left: -142px;
  margin-top: 15px;
}

.box main .center .send-box .add-icon {
  font-size: 50px;
  margin: 30px 20px;
}

.box main .center .send-box .photo-icon {
  font-size: 50px;
  margin: 25px 20px;
}

.box main .center .send-box .add-icon {
  font-size: 50px;
  margin: 25px 20px;
}

.box main .uploaded-image {
  max-width: 250px;
  max-height: 250px;
  margin-top: 10px;
}

.box footer {
  height: 150px;
}
